#define _CRT_SECURE_NO_WARNINGS
#include"SeqList.h"

void SeqListTest1()
{
	SL s;
	SeqListInite(&s);
	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 5);
	SeqListPushBack(&s, 6);
	SeqListPushBack(&s, 7);

	SeqListPrint(&s);

	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);

	SeqListPrint(&s);

	SeqListPushFront(&s, 11);
	SeqListPushFront(&s, 12);
	SeqListPushFront(&s, 13);
	SeqListPushFront(&s, 14);

	SeqListPrint(&s);

	SeqListPopFront(&s);
	SeqListPopFront(&s);
	SeqListPopFront(&s);

	SeqListPrint(&s);


	SeqListDestory(&s);
}
void SeqListTest2()
{
	SL s;
	SeqListInite(&s);

	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 5);
	SeqListPushBack(&s, 6);

	SeqListPrint(&s);

	SeqListInsert(&s, 10, 10);

	SeqListPrint(&s);


}

int main()
{
	//SeqListTest1();	
	SeqListTest2();
	return 0;
}